From: Jasper St. Pierre Date: Sat, 16 Feb 2013 04:17:44 +0000 (-0500) Subject: shell-app-system: Ensure that we correctly order subsearches X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4823 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=754df5ebe2bb912176b54c7ca7e2e48c9093d104;p=gnome-shell.git shell-app-system: Ensure that we correctly order subsearches As we use g_slist_prepend for efficiency when building the list of results before ordering it, we need to make sure we traverse the list of previous results backwards so that it's built in the same order. https://bugzilla.gnome.org/show_bug.cgi?id=693936 --- diff --git a/src/shell-app-system.c b/src/shell-app-system.c index 61e86f53a..66f94f808 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -780,6 +780,8 @@ shell_app_system_subsearch (ShellAppSystem *system, GSList *substring_results = NULL; GSList *normalized_terms = normalize_terms (terms); + previous_results = g_slist_reverse (previous_results); + for (iter = previous_results; iter; iter = iter->next) { ShellApp *app = iter->data;